@extends('Layout/adminBase')
@section('css')
<link rel="stylesheet" type="text/css" href="{{asset('/bootstrap/css/bootstrap.min.css')}}">
<style type="text/css">
    tr{
        text-align: center;
    }
    tr th{
         text-align: center;
    }
</style>
@endsection
@section('body')
<div class='container'>
@if (session('content'))
<script type="text/javascript">
    alert("{{session('content')}}");
</script>
@endif
    <form id='ajax-form' action="{{url('/admin/System/saveSettings')}}" method="post" enctype="multipart/form-data">
         {{csrf_field()}}
        <table class="table table-condensed table-bordered table-striped">
            <caption>系统设置</caption>
            <tbody>
                <tr>
                    <td>前台logo</td>
                    <td>
                        <input type="file" name='homeLogo' />
                        <img src="{{$homeLogo}}" width="100">
                    </td>
                </tr>
                <tr>
                    <td>后台logo</td>
                    <td>
                        <input type="file" name='adminLogo' />
                         <img src="{{$adminLogo}}" width="100">
                    </td>
                </tr>
                <tr>
                    <td>商城标题名称</td>
                    <td>
                        <input type="text" name='homeTitle' value="{{$result->shop_title}}"/>
                    </td>
                </tr>
                <tr>
                    <td>轮播图一</td>
                    <td>
                        <input type="file" name='pic1'  />
                         <img src="{{$pic1}}" width="100">
                    </td>
                </tr>
                <tr>
                    <td>轮播图二</td>
                    <td>
                        <input type="file" name='pic2'  />
                         <img src="{{$pic2}}" width="100">
                    </td>
                </tr>
                <tr>
                    <td>轮播图三</td>
                    <td>
                        <input type="file" name='pic3'/>
                         <img src="{{$pic3}}" width="100">
                    </td>
                </tr>
                <tr>
                    <td>轮播图四</td>
                    <td>
                        <input type="file" name='pic4'/>
                         <img src="{{$pic4}}" width="100">
                    </td>
                </tr>
                <tr>
                    <td>轮播图五</td>
                    <td>
                        <input type="file" name='pic5'  />
                         <img src="{{$pic5}}" width="100">
                    </td>
                </tr>
                <tr>
                    <td>注册验证码</td>
                    <td>
                        <input type="radio" name='registerCode' value="1"  @if ($result->registerCode == 1) checked @endif/>普通验证码
                        <input type="radio" name='registerCode' value="2"   @if ($result->registerCode == 2) checked @endif/>手机验证码
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="form-group">
                <div class="col-sm-offset-2 col-sm-7">
                    <button  class="btn btn-primary btn-block setting-save" >保存</button>
                </div>
        </div>
    </form>
</div>
@endsection
@section('footer-js')

@endsection
